package cn.edu.zwu.dao;

public class User {
    private long id;
    private String userName;
    private String password;
    private String mail;
    private String phone;

    public User(long id, String userName, String password, String mail, String phone){
        this.id = id;
        this.mail = mail;
        this.userName = userName;
        this.password = password;
        this.phone = phone;
    }

    public User(long id, String userName, String password, String mail){
        this(id, userName, password, mail, null);
    }

    public void setUserName(String userName){
        this.userName = userName;
    }
    public String getUserName(){ return this.userName; }

    public void setPassword(String password){
        this.password = password;
    }
    public String getPassword(){ return this.password; }

    public String getPhone() {
        return phone;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public long getId() {
        return id;
    }
}

